﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace gerenxinxi
{
    public partial class mima : Form
    {
        public mima()
        {
            InitializeComponent();
        }
        public string str_form6;
        public string uid;
        //Base bsa = new Base();
        private void Form6_Load(object sender, EventArgs e)
        {
            //bsa.oSelectDs("select * from userInfo where id='" + uid + "'", "userInfo");
            //textBox1.Text = bsa.oledataset.Tables[0].Rows[0][2].ToString().Trim();
        }
        private void button6_Click(object sender, EventArgs e)
        {
            //bsa.oSelectDs("select * from userInfo where id='" + uid + "'", "userInfo");
            //string id = uid;//bsa.ds.Tables[0].Rows[0][2].ToString().Trim(); //
            //if (string.Empty != textBox1.Text.Trim())
            //{
            //    if (textBox4.Text.Trim() == bsa.oledataset.Tables[0].Rows[0][1].ToString().Trim ())
            //    {
            //        if (textBox2.Text.Trim() == textBox3.Text.Trim())
            //        {
            //            if ("1" == bsa.oUpdate("update userInfo set pwd='" + textBox3.Text.Trim() + "' where id='" + id + "'"))
            //            {
            //                MessageBox.Show("修改成功！", "提示");
            //                this.Close();
            //            }
            //            else 
            //            {
            //                MessageBox.Show("修改失败！", "提示");
            //            }
            //        }
            //        else
            //        {
            //            MessageBox.Show("两次输入密码不一致！","提示");
            //        }
            //    }
            //    else
            //    {
            //        MessageBox.Show("旧的密码不正确！", "提示");
            //    }
            //}
            //else
            //{
            //    MessageBox.Show("用户名不能为空！","提示");
            //}
        }

        private void button1_Click(object sender, EventArgs e)
        {
            //bsa.ocon_close();
            this.Close();
        }
    }
}